package com.googlecode.jwsm.security;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface SecurityFactory {
	public User login(String username, String password);

    public User login(HttpServletRequest servletRequest, HttpServletResponse servletResponse, String formURL);

    public User login(HttpServletRequest servletRequest, HttpServletResponse servletResponse);

    public void logout(HttpServletRequest servletRequest, HttpServletResponse servletResponse, String formURL);

    public void setApplicationProperty(String s, Serializable serializable);

    public Object getApplicationProperty(String s);
}
